import { AppState, TodoActionType } from '../store/store'
import { Dispatch } from 'redux'
import { connect } from 'react-redux'
import TodoCounter from '../components/TodoCounter'

const mapStatetoProps = (state: AppState) => ({
  todos: state.todoReducer
})

const mapDispatchToProps = (dispatch: Dispatch<TodoActionType>) => ({})

export default connect(mapStatetoProps, mapDispatchToProps)(TodoCounter)
